package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————课程类
 * @date 2019-12-17 11:19
 */
@Entity
@Table(name = "course")
public class Course implements Serializable {

    private static final long serialVersionUID = -228450349202696565L;

    @Id
    @GeneratedValue
    @Column(name = "course_Id")
    private Integer courseId;// 课程ID

    @Column(name = "course_type_Id")
    private Integer courseTypeId;// 课程类型ID

    @Column(name = "courseName", length = 32)
    private String courseName;// 课程名称

    @Column(name = "courseCredit", length = 11)
    private String courseCredit;// 课程学分

    @Column(name = "courseImage", length = 32)
    private String courseImage;// 课程封面

//	@Column(name="courseType",length=32)
//	private String courseType;//课程类型

    @Column(name = "courseHour", length = 32)
    private String courseHour;// 课程时长

    @Column(name = "comment", length = 255)
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public Course() {

    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getCourseTypeId() {
        return courseTypeId;
    }

    public void setCourseTypeId(Integer courseTypeId) {
        this.courseTypeId = courseTypeId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseCredit() {
        return courseCredit;
    }

    public void setCourseCredit(String courseCredit) {
        this.courseCredit = courseCredit;
    }

    public String getCourseImage() {
        return courseImage;
    }

    public void setCourseImage(String courseImage) {
        this.courseImage = courseImage;
    }

    public String getCourseHour() {
        return courseHour;
    }

    public void setCourseHour(String courseHour) {
        this.courseHour = courseHour;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Course [courseId=" + courseId + ", courseTypeId=" + courseTypeId + ", courseName=" + courseName
                + ", courseCredit=" + courseCredit + ", courseImage=" + courseImage + ", courseHour=" + courseHour
                + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }

}
